﻿@model IEnumerable<Model.Musers>

@{
    ViewData["Title"] = "user_list";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户管理</title>
    <link rel="stylesheet"
          href="../../css/table.css" type="text/css" />
    <script type="text/javascript">
        function doDelete(id) {
            if (confirm("确定删除此用户吗？")) {
                location.href = "success.html?users.userId=" + id;
            }
        }
    </script>
</head>
<body>
    <table width="100%">
        <tr>
            <td>
                <font color="black">您正在做的业务是：人力资源--权限管理--用户管理 </font>
            </td>
        </tr>
        <tr>
            
        </tr>
        <tr>
            <td align="right">
                <input type="button" value="添加用户" class="BUTTON_STYLE1" onclick="location.href='user_add'">
            </td>
        </tr>
    </table>
    <table width="100%" border="1" cellpadding=5 cellspacing=1
           bordercolorlight=#848284 bordercolordark=#eeeeee
           class="TABLE_STYLE1">
        <tr class="TR_STYLE1">
            <td class="TD_STYLE1">
                用户编号
            </td>
            <td class="TD_STYLE1">
                用户名称
            </td>
            <td class="TD_STYLE1">
                真实姓名
            </td>
            <td class="TD_STYLE1">
                用户密码
            </td>
            <td class="TD_STYLE1">
                用户身份
            </td>
            <td class="TD_STYLE1">
                操作
            </td>
        </tr>
        @foreach (var item in Model)
        {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.user_id)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.user_name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.user_true_name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.user_password)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.user_sf)
            </td>
            <td>
                <a asp-action="user_edit" asp-route-Id="@item.user_id"><img src="../../images/bt_edit.gif" title="编辑" style="cursor:pointer;" /></a>
                <a asp-action="user_d" asp-route-Id="@item.user_id" onclick="return confirm('确认？')"> <img src="../../images/bt_del.gif" title="删除" style="cursor:pointer;" /></a>

            </td>
        </tr>
        }
     
    </table>

</body>
</html>
